package com.deane.webservice.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.deane.webservice.model.AclaimsClaimdata;
import com.deane.webservice.service.IAclaimsClaimdataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Ding
 * @since 2019-08-06
 */
@RestController
@RequestMapping("/aclaims-claimdata")
public class AclaimsClaimdataController {

    @Autowired
    IAclaimsClaimdataService aclaimsClaimdataService;

    @GetMapping("/list")
    public List<AclaimsClaimdata> getClaimdata(@RequestParam String code) {
        List<AclaimsClaimdata> aclaimsClaimdataList = aclaimsClaimdataService
                .list(new QueryWrapper<AclaimsClaimdata>().eq("cCD_ClaimCode", code));
        return aclaimsClaimdataList;
    }

}
